package com.guangyunl.h_super_this;

public class Person {

    int num = 100;
    public Person(){
//        this(10);
        System.out.println("我是Person类中的无参构造方法");
    }

    public Person(int data){
        this();
        System.out.println("我是Person类中的有参构造方法");
    }

    public void repeat(){
        int num = 200;
        System.out.println("局部变量(200)num = " + num);    // 200
        System.out.println("成员变量(100)num = " + this.num); //  100
        System.out.println("我是Person类中的repeat方法");
        this.repeat01();
    }


    public void repeat01(){
        System.out.println("我是Person类中的repeat01方法");

    }

}
